cmake_minimum_required(VERSION 3.28)
project(easyvulkan)

set(CMAKE_CXX_STANDARD 17)

find_package(Vulkan REQUIRED)
if(Vulkan_FOUND)
    message("----> Find vulkan success : ${Vulkan_INCLUDE_DIRS}")
endif()

find_package(glfw3 CONFIG REQUIRED)

include_directories(${CMAKE_CURRENT_SOURCE_DIR})

add_executable(easyvulkan main.cpp)

target_include_directories(easyvulkan PRIVATE ${Vulkan_INCLUDE_DIRS})
target_link_libraries(easyvulkan PRIVATE ${Vulkan_LIBRARY} glfw)